# 定义Person
class Person:
    country = 'China'

    # 定义类方法
    @classmethod    # 装饰器  -  python语法高级
    def get_country(cls):
        print(cls.country)

    @classmethod
    def fn(cls):
        print(cls)


# 类方法调用
# 类名.类方法()
Person.get_country()

print(Person)
Person.fn()

# 对象.类方法()
p1 = Person()
p1.fn()






